


#ifndef VIDEOTHEQUE_ARGSEP_H
# define VIDEOTHEQUE_ARGSEP_H



# ifndef O_NONBLOCK
#  include <sys/ioctl.h>
# endif


# include <string.h>
# include "const.h"
# include "file_manip.h"
# include <fcntl.h>

# define MAXARG 64
# define MAXSIZE 256
# define P_ERROR -1
# define P_SUCCESS 0
 
# define ARG_FIM_DE_STREAM -1
# define ARG_ERR_STREAM -2
# define ARG_END_STREAM -4
# define DUP_IN 1
# define DUP_OUT 2

void parseArgAndDupFiles(int argc,char** argv,int mask, FILE* in, FILE* out);

int read_and_parsen (FILE *stream , char *** retstring , int *retnum);

int read_and_parse ( FILE * stream , char * retbuf );

#endif

